<div class="static">
<?php  /*
<div> &nbsp; </div>
<div  style="height:200px;font-family:Aparajita, Helvetica, sans-serif;
	font-size:17px;">
<br/><b>
We are in process updating products, will intimate once its done </b>
</div> */
   ?>
<div class="categ">



<ul id="verticalmenu" class="glossymenu">
<li> <a href="<?=$base_url ?>store/products/0/all">All Products </a>
<?php
foreach($categories as $rec)
{
	?> 
    <li><a href="#">
    <?=$rec['name'] ?></a> 
    <?php
    if(!empty($rec['name']))
	{
		$categories         		  = $this->category_model->getCategories($page,'', $like,array('parent_id' => $rec['id']));
	    $sub          		          = $categories->records;
		if(!empty($sub))
		{
			?>
            <ul>
            <?php
			foreach($sub as $s)
			{
			?>
                   <li > <a href="<?=$base_url?>store/products/0/<?=$s['id']?>"><?=$s['name'] ?> </a></li>
            <?php
			}
			?>
            </ul>
            <?php
		}
	}
	?>
   </li>
    <?php
}

?>
<!--
<li><a href="#">Soft Toys</a>
    <ul>
    <li><a href="#">soft toys 1</a></li>
    <li><a href="#">soft toys 2</a></li>
    <li><a href="#">soft toys 3</a></li>
    </ul>
</li>

<li><a href="#" >powder</a>
<ul>
    <li><a href="#">powder 1</a></li>
    <li><a href="#">powder 2</a></li>
    <li><a href="#">powder 3</a></li>
    </ul>
</li>

</ul>
-->


<?php 

//foreach($categories as $c)
//{
//	echo "<div><a href=".$base_url."member/home>".$c['name']."</a></div>";
//}

?>
</div>
<div class="product">
<?php
foreach($products as $p)
{
	echo "<div class='pro' id='pro_hov'>";
	echo "<div><a href='".$base_url."product/info/".$p['id']."'> <img src='".$image_path."products/".$p['id'].".".$p['image']."' height='140' width='140' border='0' align='center' alt='productImage' /> </a></div>";
	echo $p['name']."<br/>";
	echo "<img src='".$image_path."Rs.png' height='12' weigth='12'/> &nbsp;&nbsp;";
	if($p['special_cost']>0)
	{
	echo $p['special_cost']."";
	}
	else
	{
		echo $p['cost'];
	}
	?> <a style="margin-left:70px;" href="<?=$base_url ?>cart/add/<?=$p['id'] ?>"><img src="<?=$image_path ?>addtocart.png" alt="Add to cart"/ title="" border="0"></a>
    <!--<button class="b22"> Add to cart </button>--><br/>
    <?php
	$mylogin = $this->session->userdata('mylogin');
	if(!empty($mylogin))
	{
	?>
    <a href="<?=$base_url?>store/favorite/<?=$p['id']?>">
    <img src="<?=$image_path ?>favorite.png" alt="Add to favorite" title="Add to favorite" height="16" width="16" align="right" border="0"/>
    </a>
    <?php
	}
	echo "</div>";
}
?>
</div>
 </form>
 
<div class="spacer10 rightText">
<?php 	echo $this->pagination->create_links();?>
</div>  
 </div>